package com.xinongbest.dao;

import com.xinongbest.entity.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @author lemonwan
 * 获取所有用户信息接口
 */
@SuppressWarnings("all")
public interface UserDao {
    /**
     * 获取所有用户对象
     *
     * @return
     */
    List<User> selectAllUser() throws SQLException;

    /**
     * 更新用户信息
     *
     * @param user
     * @return
     */
    int updateUserById(User user) throws SQLException;

    /**
     * 通过代理对象更新数据
     *
     * @param user
     * @return
     * @throws SQLException
     */
    Integer updateUserByIdByDynamicTrans(User user) throws SQLException;

    Integer updateUserByIdByDynamicTransNew(User user) throws SQLException;
}
